<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <form action="baidu.com/s">
        <input type="text" name="ename" />
        <input type="submit" value="提交" onclick="return aaa()" />
    </form>
    <script>
        function aaa() {
            return confirm("are you sure");
        }
    </script>
    <button onclick="shownew()">打开子窗口</button>
    <script>

        function shownew() {
            window.open('test4.html', '_blank', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
        }

    </script>
</body>
</html>